<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一周测试</title>
    <link rel="stylesheet" href="__CSS__/answer.css">
    <script src="__JS__/jquery-3.5.1.min.js"></script>
</head>

<body>
    <div class="container">
        <div class="nav">
            <ul>
                <a href="{:url('Answer/index')}" class="subNav">
                    <li>测试</li>
                </a>
                <a href="{:url('Answer/score')}" class="subNav">
                    <li>查看结果</li>
                </a>
                <a href="" class="subNav">
                    <li>当前身份</li>
                </a>
                <a href="{:url('Answer/lssue')}">
                    <li>发布试题</li>
                </a>
            </ul>
        </div>
        <div class="content">
            <form action="{:url('Answer/doExam',['p_id'=>input('p_id')])}" method="POST">
            {volist name="exam" id="exam"}
                <div>
                    <h3>{$exam.q_name}</h3>
                    <label for="">   
                        {if $exam.A }
                        <input type="radio" name='{$exam.q_id}[]' value="A">{$exam.A} <br>
                        {/if}
                        {if $exam.B }
                        <input type="radio" name='{$exam.q_id}[]' value="B">{$exam.B} <br>
                        {/if}
                        {if $exam.C }
                        <input type="radio" name='{$exam.q_id}[]' value="C">{$exam.C} <br>
                        {/if}
                        {if $exam.D }
                        <input type="radio" name='{$exam.q_id}[]' value="D">{$exam.D} <br>
                        {/if}
                        {if $exam.E }
                        <input type="radio" name='{$exam.q_id}[]' value="E">{$exam.E} <br>
                        {/if}
                        {if $exam.F }
                        <input type="radio" name='{$exam.q_id}[]' value="F">{$exam.F} <br>
                        {/if}
                    </label>
                </div>
            {/volist}
                <button>提交</button>
            </form>
            
        </div>
    </div>
</body>

</html>